#include "head.h"
void trans(char *filename)
{

    FILE *fp;
    char ch;
        printf("16进制输出为：\n");
            fp=fopen(filename,"r");
                    ch=fgetc(fp);
                        while(ch!=EOF)
                                {

                                    if(ch=='\n') printf("\n");
                                            else printf("%4x",ch);
                                                    ch=fgetc(fp);
                                                        }
                            fclose(fp);
}
